
<div id="loginPopup" class="none" title="Login">
    <form id="frmlogin" action="login.php" method="POST">
        <div>
            <label>Username</label><input type="text" name="username" >
        </div>
        <div>
            <label>Password</label><input type="password" name="password">
        </div>
        <div class="button-panel clear right">
            <input type="hidden" name="action" value="LOGIN"/>
            <input class="button-popup" type="submit" value="Login"/>
            <input class="button-popup" type="reset" value="Reset"/>
        </div>
    </form>
</div>

<script>
    $("#loginPopup").dialog({
        autoOpen: false,
        height: 230,
        width: 360,
        modal: true
    });
    $("#loginPopup").dialog("open");
</script>